package com.hoas.quicklysdk.aliyun.sms.configure;

import com.hoas.quicklysdk.aliyun.sms.AliyunSmsClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliyunSmsAutoConfigure {

    @Bean
    @ConditionalOnBean(AliyunSmsProperties.class)
    public AliyunSmsClient ossClient(AliyunSmsProperties properties) {
        AliyunSmsClient ossClient = new AliyunSmsClient(properties);
        return ossClient;
    }

}
